package com.tuyrt.hi.library.app.demo

import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.tuyrt.hi.library.app.R
import com.tuyrt.hi.library.util.ActivityManager

/**
 * author: Administrator on 2021/5/26.
 * desc:
 */
class SecondActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)

        val text = findViewById<TextView>(R.id.text)
        ActivityManager.instance.topActivity?.let {
            text.text = it.localClassName
        }
    }
}